<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>销售查询菜单</a></li>
			<li class="active"><strong>交易查询</strong></li>
		</ol>
	</div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app ng-controller="saleQueryTradeCtrl">
	<form class="form-horizontal" id="form1">
			<div class="row">
				<div class="col-lg-12">
					<div class="">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>交易信息多条列表查询</h5>
							</div>
							
							<div class="ibox-content">
								<div class="form-group">
									<label class="col-sm-1 control-label">订单号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.orderNo" onchange="keyChange()">
									</div>
									<label class="col-sm-1 control-label">交易状态：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.transStatus" ng-options="x.value as x.text for x in transStatusAll">
										
										</select>
									</div>
									<label class="col-sm-1 control-label">冻结状态：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.freezeStatus"  ng-options="x.value as x.text for x in frozenStatus"/>
									</div>
									<label class="col-sm-1 control-label">结算状态：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.settleStatus"  ng-options="x.value as x.text for x in settleStatuss"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label">商户名称/编号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.merchantNo" onchange="keyChange()">
									</div>
									<label class="col-sm-1 control-label">商户手机号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.mobilephone" onchange="keyChange()">
									</div>
									<label class="col-sm-1 control-label">代理商名称：</label>
									<div class="col-sm-2">
										<select name="autocomplete-select" id="autocomplete-select" ng-model="info.agentName" ng-options="x.value as x.text for x in agent" style="width: 100%" chosen chosen-data="agent" chosen-keyup="getStates">
										</select>
									</div>
									<label class="col-sm-1 control-label">包含下级：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.bool"  ng-options="x.value as x.text for x in bools">
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label">机具类型：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.terType"  ng-options="x.hpId as x.typeName for x in termianlTypes">
										</select>
									</div>
									<label class="col-sm-1 control-label">交易方式：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.payMethod"  ng-options="x.value as x.text for x in payMethodTypeAll">
										</select>
									</div>
									<label class="col-sm-1 control-label">业务产品：</label>
									<div class="col-sm-2">
										<select chosen="{width:'100%'}" class="chosen-select" id="autocomplete-select2" tabindex="5" ng-model="info.businessProductId" ng-options="x.value as x.text for x in BusiProdDef">
							         	   	<option value=""></option>
							             </select>
									</div>
									<label class="col-sm-1 control-label">服务种类：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.serviceType"  ng-options="x.value as x.text for x in serviceTypeAll">
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label">收单机构：</label>
									<div class="col-sm-2">
										<select chosen="{width:'100%'}" class="chosen-select" id="autocomplete-select3" tabindex="5" ng-model="info.acqOrgId" ng-options="x.value as x.text for x in acqOrgs">
							         	   	<option value=""></option>
							             </select>
									</div>
									<label class="col-sm-1 control-label">收单商户号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.acqMerchantNo">
									</div>
									<label class="col-sm-1 control-label">参考号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.acqReferenceNo" onchange="keyChange()">
									</div>
								</div>
								
								
								<div class="form-group">
									<label class="col-sm-1 control-label">交易卡号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.accountNo" onchange="keyChange()">
									</div>
									<label class="col-sm-1 control-label">卡类型：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.cardType"  ng-options="x.value as x.text for x in cardTypeAll">
										
										</select>
									</div>
									<label class="col-sm-1 control-label">结算周期：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.settlementMethod"  ng-options="x.value as x.text for x in settlementMethods">
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label">交易金额：</label>
									<div class="col-sm-5">
										<input type="text" ng-model="info.smoney" class="form-control" style="width:auto;display:inline-block;"> ~
										<input type="text" ng-model="info.emoney" class="form-control" style="width:auto;display:inline-block;">
									</div>
									<label class="col-sm-1 control-label">出款记账流水号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.accountSerialNo">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">交易时间：</label>
									<div class="col-sm-5">
										<input id="d5221" class="form-control" type="datetime" ng-model="info.transTimeStart" onchange=""  style="width:auto;display:inline-block;"
										onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5222.focus();}})"/>
									~
									<input id="d5222" class="form-control" type="datetime"  ng-model="info.transTimeEnd" onchange=""  style="width:auto;display:inline-block;"
										onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss'})"/>
<!-- 									
										<input type="datetime" style="width:auto;display:inline-block;" ng-model="info.transTimeStart" class="form-control" date-time view="date" format="YYYY-MM-DD HH:mm:ss">
										~
										<div style="position: relative; display: inline-block"><input type="datetime" ng-model="info.transTimeEnd" class="form-control" style="width:auto;display:inline-block;" date-time view="date"  format="YYYY-MM-DD HH:mm:ss"></div>
 -->									</div>
									<label class="col-sm-1 control-label">交易流水号：</label>
									<div class="col-sm-2">
										<input type="text" class="form-control" ng-model="info.id">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">创建时间：</label>
									<div class="col-sm-5">
										<input id="d5231" class="form-control" type="datetime" ng-model="info.sdate" onchange=""  style="width:auto;display:inline-block;"
											onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',changed:verifyTime(1,'#d5231','#d5232',31,isVerifyTime),onpicked:function(){d5232.focus();},maxDate:'#F{$dp.$D(\'d5232\')||\'%y-%M-%d\'}'})"/>
										~
										<input id="d5232" class="form-control" type="datetime"  ng-model="info.edate" onchange=""  style="width:auto;display:inline-block;"
											onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',changed:verifyTime(2,'#d5231','#d5232',31,isVerifyTime),minDate:'#F{$dp.$D(\'d5231\')}',maxDate:'%y-%M-%d 23:59:59'})"/>
										<!--<br/><span><font color="#999">备注：查询范围不能超过一个月</font></span>-->
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">交易记账：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.account"  ng-options="x.value as x.text for x in accounts">
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<div class="col-lg-12">
										<div class="col-sm-1"></div>
										<button class="btn btn-primary6 btn-mr20" type="button"
										 id="btnSubmit" ng-click="query()">查询</button>
										 <button class="btn btn-primary3 btn-mr20" type="button" ng-click="clear()"
										id="btnSubmit2">清空</button>
									</div>
								</div>
								
							</div>
						</div>


						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>交易信息列表</h5>
							</div>
							<div class="ibox-content">
								<div class="form-group">
									<label class="col-sm-1 control-label">汇总</label>
									<div class="col-sm-2 checkbox">笔数：<span ng-bind="znum"></span></div>
									<div class="col-sm-2 checkbox">金额：<span ng-bind="zmoney | currency:''"></span>元</div>
								</div>
								
								<div class="form-group">
									<div ui-grid="gridOptions" ui-grid-pagination ui-grid-selection ui-grid-resize-columns class="grid">
										<div ng-show="loadImg" class="timg"></div>
									</div>
								</div>
							</div>
							
						</div>
					
					</div>
				</div>
			</div>
	</form>

</div>